package day14;

/**
 * @author oldliu
 * @since 1.0
 */
public class ForTest11 {
    public static void b(){
        System.out.println("This is b");
        c();
    }
    public static void c(){
        b();
    }
    public static long jiecheng(int k){
        //k的阶乘，k* k-1的阶乘。
        if(k<=1)
            return  1;
        return k*jiecheng(k-1);
    }
    //代替循环 ,1-100
    public static void prt(int k){
        if(k>100)
            return;
        System.out.println(k);
        prt(k+1);

    }
    public static void main(String[] args) {
       // b();
        long j=jiecheng(24);
        System.out.println(j);
        prt(1);
    }
}
